package com.zhang.family_doctor.mapper;

import com.zhang.family_doctor.entity.Packages;
import com.zhang.family_doctor.entity.TeamPackages;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeamPackagesMapper {

    /**
     * 新增团队服务包
     * @param teamPackagesList
     */
    void save(@Param("teamPackagesList") List<TeamPackages> teamPackagesList);

    /**
     * 根据团队id清除掉团队服务包
     * @param teamId
     */
    void delete(Integer teamId);

    /**
     * 根据团队id查询团队服务包
     * @param teamId
     * @return
     */
    List<TeamPackages> selectTeamPackagesByTeamId(Integer teamId);

    /**
     * 查询出服务包标签名
     * @param teamId
     * @param packagesId
     * @return
     */
    List<String> selectTeamPackagesTagNameList(@Param("teamId") Integer teamId, @Param("packagesId") Integer packagesId);

    /**
     * 根据id查询出服务包
     * @param id
     * @return
     */
    List<Packages> selectPackagesById(Integer id);

}